package com.hakim.wfb.common.enums;

/**
 * Created by Administrator on 2017/7/1.
 */

/**
 * 积分类型
 */
public enum PointTypeEnum {

    CUST_POINT(1, "消费币"),
    ACTIVITY_POINT(2, "激活币"),
    ELEC_POINT(3, "电子积分"),
    ORIGINAL_POINT(4, "原始积分"),
    REPEAT_POINT(5, "复投积分"),
    CAPITAL_POINT(6, "在投本金"),
    IN_REPEAT_POINT(7, "在投复投"),
    REUSABLE_POINT(9, "复消积分"),
    STATIC_POINT(10, "静态积分"),
    DYNAMIC_POINT(11, "动态积分"),
    FEE_POINT(12, "手续费"),
    FOUNDATION_POINT(13, "公益基金");

    //TEAM_PERFORMANCE_POINT(14, "公益基金");

    private int value;
    private String description;

    private PointTypeEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static PointTypeEnum getByValue(int value) {
        PointTypeEnum[] codes = values();
        for (PointTypeEnum each : codes) {
            if (each.value == value) {
                return each;
            }
        }
        return null;
    }
}
